So we can easily adjust the widget sizing in the theme.
else
{
before_section_type = SECTION_INVALID;
- gtk_widget_set_margin_top (GTK_WIDGET (row), 4);
}
if (before && before_section_type != row_section_type)
{
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_widget_set_margin_top (separator, 4);
- gtk_widget_set_margin_bottom (separator, 4);
gtk_list_box_row_set_header (row, separator);
}
}
placessidebar, .navigation-sidebar {
> scrolledwindow.frame { border-style: none; }
+ list {
+ padding: 4px 0;
+
+ > row {
+ margin: 1px 0;
+ }
+
+ > separator {
+ margin: 4px 0;
+ }
+ }
+
row {
// Needs overriding of the GtkListBoxRow padding
min-height: 36px;
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk40">
<template class="GtkSidebarRow" parent="GtkListBoxRow">
- <property name="margin-top">1</property>
- <property name="margin-bottom">1</property>
<property name="focus-on-click">False</property>
<style>
<class name="sidebar-row"/>